﻿
using Entity;
using Entity.DTO;
using System.Runtime.CompilerServices;
using System.Security.Principal;

namespace Bll
{
    /// <summary>
    /// 材料业务逻辑接口
    /// </summary>
    public interface IMaterialBll
    {
        ///// <summary>
        ///// 创建材料
        ///// </summary>
        ///// <returns></returns>
        public bool CreateMaterial( string title, string unit, decimal Price, decimal PriceMain, decimal PriceAssistant, decimal PriceMachine, decimal PriceArtificial, decimal PriceLoss, string remark, string classificationId, out string msg);

        /// <summary>
        /// 软删除材料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteMaterial(string id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteMaterials(List<string> ids);

        /// <summary>
        /// 根据材料id获取材料信息
        /// </summary>
        /// <param name="menuId"></param>
        /// <returns></returns>
        public object GetMaterialById(string id);


        /// <summary>
        /// 获取材料集合
        /// </summary>
        public object GetMaterialList(string title, int page, int limit, out int count);


        /// <summary>
        /// 更新材料
        /// </summary>
        /// <returns></returns>
        public bool UpdateMaterial(string id, string title, string unit, decimal Price, decimal PriceMain, decimal PriceAssistant, decimal PriceMachine, decimal PriceArtificial, decimal PriceLoss, string remark, out string msg);

    }
}